'''
读取文件，判断指定字符出现的次数
'''

with open("文本/练习题1.txt", "r", encoding="UTF-8") as f:
    data = f.read()
    print(data)
    print(f"字符总数量：{len(data)}")
    str = "大"
    print(f"指定字符:{str}   出现的次数：{data.count(str)}")
